
import { JsonUtil } from "../../../../../extensions/oops-plugin-framework/assets/core/utils/JsonUtil";

export class TableHeroStarExt {
    static TableName: string = "HeroStarExt";

    private data: any;

    init(id: number) {
        var table = JsonUtil.get(TableHeroStarExt.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 防御加成 */
    get def_ratio(): number {
        return this.data.def_ratio;
    }
    /** 攻击加成 */
    get atk_ratio(): number {
        return this.data.atk_ratio;
    }
    /** 血量加成 */
    get hp_ratio(): number {
        return this.data.hp_ratio;
    }
    /** 消耗同名碎片数量 */
    get cost_clip_num(): number {
        return this.data.cost_clip_num;
    }
}
    